﻿
using BCCommon;
using BCCommon.Enums;
using BCCommon.OAEnums.WorkSchedule;
using BCData.OA.WorkSchedule.WorkSchedule;
using BCDto.OA.WorkSchedule.WorkSchedule;
using BCDto.Sim.Admin.Admin;
using BCEntity.OA.WorkSchedule.WorkSchedule;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.OA.WorkSchedule.WorkSchedule
{
	/// <summary>
	/// 工作进度表
	/// </summary>
	public interface IWorkScheduleService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="workScheduleId">工作进度表Id</param>
		bool Exists(long workScheduleId);
		/// <summary>
		/// 添加工作进度表
		/// </summary>
		/// <param name="requestDto">工作进度表信息</param>
		/// <param name="adminDto"></param>
		WorkScheduleDto Add(WorkScheduleRequestDto requestDto, AdminDto adminDto);
		/// <summary>
		/// 更新工作进度表
		/// </summary>
		/// <param name="putDto">工作进度表信息</param>
		/// <param name="adminDto"></param>
		WorkScheduleDto Update(WorkSchedulePutDto putDto, AdminDto adminDto);
		/// <summary>
		/// 删除工作进度表
		/// </summary>
		/// <param name="workScheduleId">工作进度表Id</param>
		bool Delete(long workScheduleId);
		/// <summary>
		/// 获取工作进度表
		/// </summary>
		/// <param name="workScheduleId">工作进度表Id</param>
		WorkScheduleDto Get(long workScheduleId);
		/// <summary>
		/// 获取工作进度表列表
		/// </summary>
		/// <param name="companyId">公司Id</param>
		/// <param name="departmentId">部门Id</param>
		/// <param name="scheduleType">工作进度表类型</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		IEnumerable<WorkScheduleDto> GetList(int? companyId, int? departmentId, OAWorkScheduleType scheduleType, DateTime start, DateTime end);
		/// <summary>
		/// 获取工作进度表分页列表
		/// </summary>
		/// <param name="companyId">公司Id</param>
		/// <param name="departmentId">部门Id</param>
		/// <param name="scheduleType">工作进度表类型</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">工作进度表每页数据条数</param>
		PageableList<WorkScheduleDto> Query(int? companyId, int? departmentId, OAWorkScheduleType scheduleType, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}